<?php
if($access['status'] == Model_UserRelations::MYSELF)
{?>
<a href="<?php echo My_URL::app_url('user/editprofile');?>">edit profile</a><?php 
}
else if($access['status'] == Model_UserRelations::PENDING_COUPLE) 
{
	if($my_uid == $access['sender_uid']) echo "Awaiting couple confirmation";
	else echo "accept couple request from email.";
}
else if($access['status'] == Model_UserRelations::COUPLE) 
{
	echo "you are in relationship with this person";
}
else if($access['status'] == Model_UserRelations::PENDING_FRIEND)
{
	if($my_uid == $access['sender_uid']) echo "Awaiting friend confirmation";
	else echo "accept friend request fom email.";
}
else if($access['status'] == Model_UserRelations::FRIEND)
{
	echo "you are friend with this person";
}
else if($access['status'] = Model_UserRelations::NO_RELATION)
{
	echo "<div><a class='invite_btn' href='#'
		onClick='javascript:invite(this, \"$invite_url\");'> Add friend</a></div>";
}
?>
<div id='basic'>
	<div class='profile_title'>Basic Info</div>
	<div>first name:<?php echo HTML::chars($data['f_name']);?></div>
	<div>last name: <?php echo HTML::chars($data['l_name']);?></div>
	<div>Profile pic:<img src='<?php echo $data['pic_url'];?>' width="100" height="100"></img></div>
	<div>About us: <?php echo HTML::chars($data['about_me']);?></div>
	<div>Religion: <?php echo HTML::chars($data['religion']);?></div>
</div>
<div id='contact'>
	<div class='profile_title'>Contact details</div>
	<div>Address: <?php echo HTML::chars($data['address']);?></div>
	<div>City: <?php echo HTML::chars($data['city']);?></div>
	<div>Zip: <?php echo HTML::chars($data['zip']);?></div>
	<div>Country: <?php echo HTML::chars($data['country']);?></div>
	<div>Phone no.: <?php echo HTML::chars($data['phone']);?></div>
</div>
<div id='entertainment'>
	<div class='profile_title'>Entertainment</div>
	<div>Favourite movies: <?php echo HTML::chars($data['movies']);?></div>
	<div>Favourite songs: <?php echo HTML::chars($data['songs']);?></div>
	<div>Favourite Holiday desstination: <?php echo HTML::chars($data['holiday_place']);?></div>
	<div>Interests: <?php echo HTML::chars($data['interests']);?></div>
</div>
<div id='personal'>
	<div class='profile_title'>Something Personal</div>
	<div>How did you meet: <?php echo HTML::chars($data['meet_how']);?></div>
	<div>When did you first meet: <?php echo HTML::chars($data['meet_time']);?></div>
	<div>Describe your first date: <?php echo HTML::chars($data['meet_desc']);?></div>
	<div>Who proposed and how: <?php echo HTML::chars($data['propose']);?></div>
</div>